<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*,java.io.*,java.sql.*,InvestmentPojo.*;" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>investment gateways</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="images679/style.css" rel="stylesheet" type="text/css" media="screen" />
<link rel="stylesheet" href="themes/default/default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="nivo-slider.css" type="text/css" media="screen" />
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<!--[if IE]>
<style type="text/css">
#sidebar #calendar {
	background-position: 0px 20px;
}
</style>
<![endif]-->
</head>
<script language="javascript">
function ShowBodyApp(id){
	
	
	if (window.XMLHttpRequest)
	  {
		// code for IE7+, Firefox, Chrome, Opera, Safari
	   xmlhttp=new XMLHttpRequest();
	  }
	else
	  {
		// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.open("POST","UIFormAction.do?a="+id,true); 
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	     {
		  if("" == xmlhttp.responseText){
	    		
	    		document.getElementById("tool1123").style.display="";
	    		document.getElementById("contright").style.display="none";
	    		
		  }else{
			  document.getElementById("contright").style.display="";
			  document.getElementById("contright").innerHTML=xmlhttp.responseText;
			  document.getElementById("tool1123").style.display="none";
			 //	document.getElementById("contright").innerHTML=xmlhttp.responseText;  
		  }
	    
	    }
	  }

	xmlhttp.send();


}
//document.getElementById("tool1123").style.display="none";
//alert(document.frm.userId.value);
</script>
<% String serviceName = null != request.getAttribute("showServiceName")? request.getAttribute("showServiceName").toString():""; 
String defaultJspPage = null != request.getAttribute("defaultShowServicePage")? (String)request.getAttribute("defaultShowServicePage"):"";
String UserIDForservice = null != request.getAttribute("UserIDForservice")?(String)request.getAttribute("UserIDForservice"):"";
String showUserToolPage = null != request.getAttribute("showUserToolPage")?(String)request.getAttribute("showUserToolPage"):"";

String userId = null != request.getSession().getAttribute("UserID")?(String)request.getSession().getAttribute("UserID"):"";

String defaultShowServicePage = null != request.getAttribute("defaultShowServicePage")?(String)request.getAttribute("defaultShowServicePage"):"";

System.out.println("UserIDForservice"+UserIDForservice);
System.out.println("TOOL"+showUserToolPage);



%>
<script src="jquery.js"></script>
<%-- <c:set var="defaultPage" value="<%=defaultJspPage%>" /> --%>
<script type="text/javascript" src="sourceScript/ApplicationformScript.js"></script>
<body background="head.jpg" oncopy="return false" oncut="return false" onpaste="return false">
<form name="Form1" >
<jsp:include page="/Header.jsp" flush="true"/>
<input type="hidden" name= 'service' id="service" value='1'>
<input type="hidden" value ="<%=request.getAttribute("UserIDForservice")%>" id="UserIDForservice" name="UserIDForservice"></input>
<input type="hidden" value ="<%=request.getAttribute("serviceIdForservice")%>" id="serviceIdForservice" name="serviceIdForservice"></input>
<input type="hidden" value ="<%=request.getAttribute("methodName")%>" id="methodName" name="methodName"></input>
<input type="hidden" name="userID" id="userID" value='<%=userId%>' />
<input type="hidden" value ="" id="method123" name="method123"></input>


<div id="bodyTotal">
<table id="tableBgColor"  class="tableBgColor" width="100%" style="" align="center" >
<td>
<div id="cont1">
<div id="contbuss" style="background-image:  #FFFFFF url(body456.png) repeat-x;">
<div id="contleft">

<div class="contentup">
<ul class="svertical">
<% if(null == userId || "null".equals(userId) || "".equals(userId)){%>
	<li style="width:200px !important;"><a href="#" style="float:left !important;" >ODI TOOL FOR PERSONS RESIDET IN INDIA</a></li>
	<li style="width:200px !important;"><a href="#" style="float:left !important;" >ARTICLES</a></li>
	<li style="width:200px !important;"><a href="#" style="float:left !important;" >CASE LAWS</a></li>
	<li style="width:200px !important;"><a href="#" style="float:left !important;" >CIRCULARS</a></li>
	<li style="width:200px !important;"><a href="#" style="float:left !important;" >MASTER CIRCULAR</a></li>
	<li style="width:200px !important;"><a href="#" style="float:left !important;" >NOTIFICATIONS</a></li>
	<li style="width:200px !important;"><a href="#" style="float:left !important;" >PRESS NOTES</a></li>
	<li><a href="#" style="float:left !important;" >FAQ</a></li>
<%}else{ %>
	
	<li><a href="#" style="float:left !important;" onclick="ShowToolApplication('<%=request.getAttribute("serviceIdForservice")%>')" ><%=request.getAttribute("showServiceName")%></a></li>
	<li><a href="#" style="float:left !important;" onclick="ShowBodyApp('Articles')" >ARTICLES</a></li>
	<li><a href="#" style="float:left !important;" onclick="ShowBodyApp('CaseLaws')" >CASE LAWS</a></li>
	<li><a href="#" style="float:left !important;" onclick="ShowBodyApp('Circulars')" >CIRCULARS</a></li>
	<li><a href="#" style="float:left !important;" onclick="ShowBodyApp('MasterCirculars')" >MASTER CIRCULAR</a></li>
	<li><a href="#" style="float:left !important;" onclick="ShowBodyApp('Notifications')" >NOTIFICATIONS</a></li>
	<li><a href="#" style="float:left !important;" onclick="ShowBodyApp('PressNotes')" >PRESS NOTES</a></li>
	<li><a href="#" style="float:left !important;" onclick="ShowBodyApp('FAQ')" >FAQ</a></li>
<%} %>	
</ul>





</div>


</div>
</li>

<div align="center" class="loadingForm1" id="loadingForm" >

<div id="contright"   class="d1" >
  <%if( "".equals(showUserToolPage)){  %>
 		<jsp:include page='<%=defaultShowServicePage %>' flush="true"/>
 	System.out.print("Response Show Service Page--------------->"+defaultShowServicePage);
<%}%>
  </div>
  <%if( !"".equals(showUserToolPage)){ %>  
   <div id ="tool1123">
   			<jsp:include page='<%=showUserToolPage %>' flush="true"/> 
    System.out.print("Response User Tool Page--------------->"+showUserToolPage);
  </div>
   <%}%> 
  <div>
 
  </div>
  
  
</div></div>



</div>
<input type="hidden" name="userId" id="userId" value='<%=request.getAttribute("UserID") %>' />
	
	
</div>
</div>
</td>
</table>
</div>
<%-- <jsp:include page="Footer.jsp" flush="true"/> --%>
</form>
</body>

</html>
